package com.tanker.web.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tanker.web.dao.UserDao;
import com.tanker.web.dao.po.User;
import com.tanker.web.dto.resp.UserDto;
import com.tanker.web.service.UserService;
/**
 * 
 * @ClassName UserServiceImpl
 * @author fryu
 * @Date 2017年6月3日 上午8:38:25
 * @version 1.0.0
 */
@Service
public class UserServiceImpl implements UserService{
	@Autowired
	private UserDao userDao;

	public UserDto create(User user) {
		Date createTime = new Date();
		user.setCreateTime(createTime);
		user.setUserId(user.getUserId());
		userDao.insert(user);
		return new UserDto();
	}

	public List<User> query() {
		// TODO Auto-generated method stub
		return null;
	}
}
